//
//  WXSBooksTableViewCell.m
//  SleepBooks
//
//  Created by rimi on 16/9/18.
//  Copyright © 2016年 rimi. All rights reserved.
//

#import "WXSBooksTableViewCell.h"

@implementation WXSBooksTableViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    
}
- (IBAction)midButtonTapped:(UIButton *)sender
{
    if (self.delegate && [self.delegate respondsToSelector:@selector(sleepBookCellDidPressMidButton:)]) {
        [self.delegate sleepBookCellDidPressMidButton:self];
    }
}

- (IBAction)cancelbuttonTapped:(UIButton *)sender
{
    if (self.delegate && [self.delegate respondsToSelector:@selector(sleepBookCellDidPressCancelButton:)])
    {
        [self.delegate sleepBookCellDidPressCancelButton:sender];
    }
}

- (IBAction)checkButtonTapped:(UIButton *)sender
{
    if (self.delegate && [self.delegate respondsToSelector:@selector(sleepBookCellDidPressCheckButton:)])
    {
        [self.delegate sleepBookCellDidPressCheckButton:sender];
    }
}
@end
